﻿@model LeadVinaglue.Models.BaseModel 
           
@if (Model != null)
{        
    if(!string.IsNullOrEmpty(Model.StateName))
    {            
        <div class="location">Khu vực:&nbsp;&nbsp;&nbsp;
            <span class="head">@Model.StateName
            @if(!string.IsNullOrEmpty(Model.DistrictName))
            {
                <span>&nbsp;|&nbsp;@Model.DistrictName</span>
                <a href="@Model.LinkDeleted.ToLower()" title="Xem @Model.StateName"><img src="/images/icn_delete.png" width="12" height="12" alt="delete" border="0" /></a>
            }
            </span>
        </div>
    }
    else if (!string.IsNullOrEmpty(Model.CategoryName))
    {
        <div class="location">Danh mục:&nbsp;&nbsp;&nbsp;<span class="head">@Model.CategoryName
            @if (!string.IsNullOrEmpty(Model.SubCategoryName))
            {
                <span>&nbsp;|&nbsp;@Model.SubCategoryName</span>
                <a href="@Model.LinkDeleted.ToLower()" title="Xem @Model.CategoryName"><img src="/images/icn_delete.png" width="12" height="12" alt="delete" border="0" /></a>
            }
            </span>
        </div>
    }
}
